
#ifndef	__BOQUE_TRASIT_BROKER_HPP_2010__
#define	__BOQUE_TRASIT_BROKER_HPP_2010__

#include <string>

#include <boost/asio.hpp>


namespace	boque	{
namespace	trasit	{

class	Broker
{
public	:
	Broker( std::string host, std::string port );
	~Broker();

private	:
	int	call( const std::string& request, std::string& response );

public	:
	int	send( const std::string& request );
	int	send( const char* data, size_t size );

public	:
	int	connect();
	int	disconnect();

private	:
	std::string	_host;
	std::string	_port;

	bool	_connected;

	std::string	END_TAG;

	////
	boost::asio::io_service 		_io_service;
	boost::asio::ip::tcp::socket	_socket;

};	//// class Broker

}	//// namespace trasit
}	//// namespace boque

#endif	////	__BOQUE_TRASIT_BROKER_HPP_2010__

